<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>新浪导航栏</title>

    <style>
      * {
        margin: 0;
        padding: 0;
      }

      .nav {
        width: 1300px;
        height: 50px;
        border-top: 5px solid #ff8500;
        border-bottom: 1px solid #666;
        margin: 0 auto;
        margin-top: 15px;
      }

      .clearfix:after {
        content: "";
        display: block;
        clear: both;
      }

      .nav ul li {
        list-style: none;
        float: left;
        padding: 0 20px;
        text-align: center;
        line-height: 50px;
      }

      .nav ul li a {
        display: inline-block;
        text-decoration: none;
        color: #333;
        padding: 0 20px;
        height: 100%;
      }

      .nav ul li a:hover {
        cursor: pointer;
        background-color: #eee;
        color: orange;
      }

      .nav ul li a:active {
        color: #008c8c;
      }
    </style>
  </head>
  <body>
    <div class="nav">
      <ul class="clearfix">
        <li><a href="">设为首页</a></li>
        <li><a href="">手机新浪网</a></li>
        <li><a href="">移动客户端</a></li>
        <li><a href="">博客</a></li>
        <li><a href="">微博</a></li>
        <li><a href="">关注我</a></li>
      </ul>
    </div>
  </body>
</html>
